<form class="tableform" method="post" action="index.php?app=b2c&ctl=admin_member&act=msg_queue" id='messenger-msg-form' >
<h4 style="border:none"><{t}>标题<{/t}></h4>
<div class="division">
<{input type="text" style=" width:98%" name="title" vtype="required"}>
</div>


<h4><{t}>信息内容<{/t}></h4>
 <div class="division"><{input type="textarea" style=" width:91%;" rows="10" name="content" vtype="required"}></div>

<div class="table-action">
	<{button label=$___b2c="发送"|t:'b2c' type="submit" id="msg-form-submit"}>
</div>
<input type="hidden" name="arrMember" value=<{$aMember}> />
</form>
<script>
(function(){
	if(Browser.ie6)$E('#messenger-msg-form input[name=title]').focus();

    var _form = $('messenger-msg-form');
    var btn =$('msg-form-submit');
    //var finder = finderGroup['<{$env.get.finder_id}>'];

    _form.store('target',{
    	onRequest:function() {
    		btn.set('disabled', true);
    	},
        onComplete:function(){

        },
        onSuccess:function(response){
            var hash_res_obj = JSON.decode(response);
            if (hash_res_obj.success != undefined && hash_res_obj.success != "")
            {
                try{
                    var _dialogIns = btn.getParent('.dialog').retrieve('instance');
                }catch(e){}

                if(_dialogIns)
                {
                    _dialogIns.close();
                  //  finder.refresh.delay(400,finder);
                }
            }
            else
            {
                //alert(hash_res_obj.error);
            }
        }
    });
/*
        btn.addEvent('click',function(){

            _form.fireEvent('submit',{stop:$empty});



        });
  */
})();

</script>